$(function(){
	//发货
	$('.suregoods').click(function(){
		i = $(this).index('.suregoods');
		if($(this).attr('sendGoods') != 'sendGoods'){
			return false;
		};
		oid = $(this).attr('oid');
		$.ajax({
			url: controller+'/sendGoods',
			type:'post',
			dataType:'json',
			data:'oid='+oid,
			success:function(msg){
				if(msg != ''){
					$('.suregoods').eq(i).html('<span class="work">已发货</span>').removeClass('sendGoods');
				}
			}
		})
	})
})